/*
 * 
 * 
 * 
 */
package com.hboxs.asl.service.impl;

import com.hboxs.asl.dao.GiveawayDao;
import com.hboxs.asl.entity.Giveaway;
import com.hboxs.asl.service.GiveawayService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;

/**
 * Service - 企业服务
 */
@Service("giveawayServiceImpl")
public class GiveawayServiceImpl extends BaseServiceImpl<Giveaway, Long> implements GiveawayService {

    @Resource(name = "giveawayDaoImpl")
    private GiveawayDao giveawayDao;

    @Resource(name = "giveawayDaoImpl")
    public void setBaseDao(GiveawayDao giveawayDao) {
        super.setBaseDao(giveawayDao);
    }


    @Override
    public List<Giveaway> findValid() {
        return giveawayDao.findValid();
    }

    @Override
    public Giveaway find(BigDecimal quota) {
        return giveawayDao.find(quota);
    }
}
